﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharepointSolutionInstaller.Views;
using SharepointSolutionInstaller.Resources;

namespace SharepointSolutionInstaller.Utils.SolutionDeployment
{
    /// <summary>
    /// Command for removing the SharePoint solution.
    /// </summary>
    public class RemoveSolutionCommand : SolutionCommand
    {
        Guid solutionId;
        internal RemoveSolutionCommand(InstallProcess parent,Guid solutionId) : base(parent) {
            this.solutionId=solutionId;
        }

        internal override string Description
        {
            get
            {
                return CommonUIStrings.removeSolutionCommand;
            }
        }

        protected internal override bool Execute()
        {
            RemoveSolution(solutionId);
            return true;
        }
    }
}
